import cv2
import numpy as np

x = np.uint8([250])
y = np.uint8([10])


img = cv2.imread("d:\\test\\test.jpg")
img1 = cv2.imread('d:\\test\\meisi2.jpg')
cv2.namedWindow('image', cv2.WINDOW_NORMAL)
cv2.resizeWindow('image', 320, 350)  # 定义frame的大小
# img2 = cv2.add(img1,img)
for x in range(10):
    f= x/10

    img2 = cv2.addWeighted(img1,f,img,1-f,15)
    cv2.imshow('image', img2)
    cv2.waitKey(500)
cv2.destroyAllWindows()